home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABERMUD.ZIP / GMLNK.C < prev    next >
C/C++ Source or Header  |  1989-07-08  |  1KB  |  61 lines

  1. #include "files.h"
  2. #include <stdio.h>
  3. #include "System.h"
  4.  
  5. void talker(nam)
  6. char *nam;
  7. {
  8. extern long ttyt;
  9. long isawiz;
  10. char z[60];
  11. x1:
  12. if(qnmrq) if(execl(EXE,"   --}----- ABERMUD -----{--    Playing as ",nam,0)==-1)
  13. {
  14.     crapup("mud.exe : Not found\n");
  15. }
  16. cls();
  17. printf("Welcome To AberMUD II [Unix]\n\n\n");
  18. printf("Options\n\n");
  19. printf("1]  Enter The Game\n");
  20. printf("2]  Change Password\n");
  21. printf("\n\n0] Exit AberMUD\n");
  22. printf("\n\n");
  23. isawiz=0;
  24. cuserid(z);
  25. if((!strcmp(z,"wisner"))||(!strcmp(z,"wisner")))
  26. {
  27. printf("4] Run TEST game\n");
  28. printf("A] Show persona\n");
  29. printf("B] Edit persona\n"); 
  30. printf("C] Delete persona\n");
  31. isawiz=1;
  32. }
  33. printf("\n\n");
  34. printf("Select > ");
  35. l2:getkbd(z,2);
  36. lowercase(z);
  37. switch(z[0])
  38. {
  39. case'1':
  40. cls();
  41. printf("The Hallway\n");
  42. printf("You stand in a long dark hallway, which echoes to the tread of your\n");
  43. printf("worlds beyond the known......\n\n");
  44. execl(EXE,"   --{----- ABERMUD -----}--      Playing as ",nam,0);
  45. crapup("mud.exe: Not Found\n");
  46. case '2':chpwd(nam);break;
  47. case '0':exit(0);
  48. case '4':if(isawiz) 
  49. {
  50. cls();
  51. printf("Entering Test Version\n");
  52. }
  53. break;
  54. case 'a':if(isawiz) showuser();break;
  55. case 'b':if(isawiz) edituser();break;
  56. case 'c':if(isawiz) deluser();break;
  57. default:printf("Bad Option\n");
  58. }
  59. goto x1;
  60. }
  61.